pkgname=vdr-console
pkgver=0.6.0
pkgrel=1
arch=('i686')
pkgdesc="An OSD-based console plugin for VDR"
url="http://www.ricomp.de/vdr/"
license=('GPL')
depends=('vdr' 'gcc')
source=(http://www.ricomp.de/vdr/$pkgname-$pkgver.tgz \
	vdr-console-time-ms.diff)
md5sums=('c3ff9981615bee1c119572e9471fa15c' '9859872d4edd9e490b1036d7e004b818')

build() {
  cd $startdir/src/console-$pkgver

  patch -Np1 -i $startdir/src/vdr-console-time-ms.diff || return 1

  sed -i \
	 -e 's:VDRVERSION:APIVERSION:g' \
	 -e 's:@cp $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1
}
